package com.quasar.hpatient.module.mine_qrcode;

import android.widget.ImageView;

import com.quasar.hpatient.R;

import lib.quasar.base.frame.BaseActivity;
import lib.quasar.widget.image.BitmapImageView;
import lib.quasar.widget.menu.NavigationView;

/**
 * description: 我 ==> 个人资料
 * created by kalu on 2018/7/16 15:41
 */
public final class MineQrcodeActivity extends BaseActivity<MineQrcodePresenter> implements MineQrcodeView {

    @Override
    public int initView() {
        return R.layout.activity_mine_qrcode;
    }

    @Override
    public void initDataLocal() {

        final NavigationView menu = findViewById(R.id.mine_qrcode_menu);
        menu.setOnNavigationChangeListener((isBack, isMenu) -> {
            if (isBack) onBackPressed();
            else toast("提交");
        });

        final BitmapImageView picture = findViewById(R.id.mine_qrcode_picture);
        getPresenter().loadQrcode(this, picture);
    }
}